﻿#region 作者和版权
/*************************************************************************************
      * CLR 版本:       4.0.30319.225
      * 类 名 称:       SimpleUser
      * 机器名称:       LIRONGNAN
      * 命名空间:       LCL.Entity
      * 文 件 名:       SimpleUser
      * 创建时间:       2013 2013-11-22 8:35:29
      * 作    者:       李荣楠
      * 版    权:       SimpleUser说明：本代码版权归李荣楠所有，请勿商用 2013 - 2014    
      * 修改时间:
      * 修 改 人:
      ************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LCL.Entity
{
    /// <summary>
    /// 简单用户信息类
    /// </summary>
    public class SimpleUser : BaseEntity
    {
        #region 私有成员
        
        private NVarChar id = new NVarChar();
        private NVarChar name = new NVarChar();
        private NVarChar pwd = new NVarChar();
        private NVarChar groupid = new NVarChar();
        private NVarChar email = new NVarChar();
        private Bit isrestricted = new Bit();
        private Bit isadmin = new Bit();
        private Int status = new Int();
        #endregion

        #region 属性
        
        public NVarChar Id
        {
            get { return id; }
            set { id = value; }
        }
        public NVarChar Name
        {
            get { return name; }
            set { name = value; }
        }
        public NVarChar Pwd
        {
            get { return pwd; }
            set { pwd = value; }
        }
        public NVarChar Groupid
        {
            get { return groupid; }
            set { groupid = value; }
        }
        public NVarChar Email
        {
            get { return email; }
            set { email = value; }
        }
        public Bit Isrestricted
        {
            get { return isrestricted; }
            set { isrestricted = value; }
        }
        public Bit Isadmin
        {
            get { return isadmin; }
            set { isadmin = value; }
        }
        public Int Status
        {
            get { return status; }
            set { status = value; }
        }
        #endregion

        #region 方法
        public SimpleUser()
        {
            id.Type = FieldType.Primary;
            TableName = "users";
            id.Data = Guid.NewGuid().ToString();
            Isrestricted.Data = false;
            Isadmin.Data = false;
            Status.Data = 0;
        }
        #endregion

    }
}
